package end.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import end.bean.shiro.Manager;

/**
 * 
 * ManagerDAO.java 2016-6-24
 * 
 * Copyright zhaocj Inc. All rights reserved. Love Me Like Love Justin Bieber
 */
@Repository
public interface ManagerDAO<T> extends BaseMapper<T> {
	public void insert(Manager manager);

	public Manager queryManagerByOption(@Param("id") Integer id,
                                        @Param("nickName") String nickName,
                                        @Param("password") String password);

	public Integer modifyPass(Object key);

	public List<Manager> queryManagersByPage(@Param("page") Integer page,
                                             @Param("rows") Integer rows, @Param("sort") String sort,
                                             @Param("order") String order);

	public Integer count();

	public Integer isManagerCodeAlreadyUsed(Manager manager);

	public boolean modifyManager(Manager manager);
}
